<template>
  <template v-if="info.consultationType === 'clinical'">
    <Filed
        class="w-full"
        label="现病史"
        :value="info.currentMedicalHistory"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="既往史"
        :value="info.pastHistory"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="过敏史"
        :value="info.allergicHistory"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="体格检查"
        :value="info.checkUp"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="辅助检查结果"
        :value="info.accessoryExam"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="初步诊断"
        :value="info.tentativeDiagnosis"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="治疗经过"
        :value="info.treatmentProcess"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="主治医生"
        :value="info.mainDoctor"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="患者主诉"
        :value="info.patientComplaint"
        open-ellipsis
    />
  </template>

  <template v-if="info.consultationType === 'pathology'">
    <Filed
        class="w-full"
        label="送检材料"
        :value="info.inspectionMaterial"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="临床诊断"
        :value="info.clinicalDiagnosis"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="病历摘要详情"
        :value="info.medicalDetail"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="手术所见"
        :value="info.surgicalFindings"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="辅助检查结果"
        :value="info.accessoryExam"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="送检医师"
        :value="info.sendingPhysician"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="备注说明"
        :value="info.comment"
        open-ellipsis
    />
  </template>

  <template v-if="info.consultationType === 'image'">
    <Filed
        class="w-full"
        label="初步诊断"
        :value="info.tentativeDiagnosis"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="治疗经过"
        :value="info.treatmentProcess"
        open-ellipsis
    />
    <Filed
        class="w-full"
        label="患者主诉"
        :value="info.patientComplaint"
        open-ellipsis
    />
  </template>
</template>

<script lang="ts">
import {defineComponent} from "vue";
import Filed from "./Filed.vue";

export default defineComponent({
  name: "CaseSummary",
  components: {Filed},
  props: {
    info: Object,
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  beforeCreate() {
  },
  created() {
  },
  beforeMount() {
  },
  mounted() {
  },
  beforeUpdate() {
  },
  updated() {
  },
  methods: {},
  beforeUnmount() {
  },
  unmounted() {
  },
});
</script>

<style scoped lang="scss"></style>
